// Lindsay Gilmour
// Adam Lusch
// Dan Niceswanger
//
// Computer Graphics Project 2:
// Teapot racing!

#ifndef CHECKPOINT_H
#define CHECKPOINT_H

#include <GL/glut.h>
#include <string>
using namespace std;

// probably should have made this a struct!
class Checkpoint
{
	public:
		Checkpoint(GLfloat, GLfloat, GLfloat, GLfloat);
		~Checkpoint();
		
		void draw() const;
		
		static void checkpointCleared();
		
		static int duration;
		
	private:
		GLfloat x1, z1;
		GLfloat x2, z2;
		
		bool doDraw;
		
		static const string message;
	
	friend class PhysicsWorld;
};

#endif
